package xuegao.study.mall.admin.service.pms;

import org.springframework.transaction.annotation.Transactional;
import xuegao.study.mall.admin.dto.PmsProductCategoryParam;
import xuegao.study.mall.common.model.pms.PmsProductCategory;
import xuegao.study.mall.common.vo.pms.PmsProductCategoryVo;

import java.util.List;

public interface PmsProductCategoryService {

    List<PmsProductCategory> list(Long parentId, Integer pageNum, Integer pageSize);

    List<PmsProductCategoryVo> listWithChildren();

    PmsProductCategory getItem(Long id);

    @Transactional
    int create(PmsProductCategoryParam param);
    @Transactional
    int update(Long id, PmsProductCategoryParam param);
}
